package cn.huaqingcheng.tianshu.common.core;

import java.nio.charset.StandardCharsets;
import java.util.Base64;

/**
 * Base64Tool
 */
public interface Base64Tool {

    /**
     * 解码为 String
     */
    static String decode(String str) {
        byte[] decode = Base64.getDecoder().decode(str);
        return new String(decode, StandardCharsets.UTF_8);
    }

}
